package cn.com.fattiger;

/**
 * 
 * SymbolDemo
 * @author fattiger.xiaoyang
 * @date 2016/12/25
 * @qqGroup 454655009
 * java中取模其实就是求余
 * 结果的符号 与被除数一样 也就是%左边的值
 */
public class SymbolDemo {

	public static void main(String[] args) {
		System.out.println("5%3: "+5%3);
		System.out.println("5/3: "+5/3);
		System.out.println("-5%-3: "+-5%-3);
		System.out.println("-5/-3: "+-5/-3);
		System.out.println("-5%3: "+-5%3);
		System.out.println("-5/3: "+-5/3);
		System.out.println("5%-3: "+5%-3);
		System.out.println("5/-3: "+5/-3);
	}

}
